/**
 * @file        main.c
 * @author      Shadow3D (ShadowThreeD@outlook.com)
 * @brief       compiler with "gcc -Wall .\main.c .\dmem_log.c"
 * @version     0.1
 * @date        2022-01-19
 * 
 * @copyright   Copyright (c) 2022
 * 
 */
#include <stdio.h>

#include "./dmem_log.h"

#define NAME      "Shadow"

int main(void)
{
    InitDMemLog();

    PrintDMem();

    char *name = MallocExt(20);

    PrintDMem();

    memcpy(name, NAME, sizeof(NAME));

    PrintDMem();

    printf("name = %s, len = %d\r\n", name, sizeof(NAME));

    FreeExt(name);

    PrintDMem();

    return 0;
}